/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Miscelanea.tiposgenericos;

import java.util.Comparator;

/**
 *
 * @author User
 */
public class OrdenarPersonaEdad implements  Comparator<Persona>{
         
   
    public int compare(Persona o1, Persona o2) {
     
      return (o1.getEdad()- o2.getEdad());
      
    }

    
    
    
}
